package com.zmj.service.impl;

import com.zmj.entity.UserInfo;
import com.zmj.mapper.UserInfoMapper;
import com.zmj.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    UserInfoMapper userInfoMapper;

    @Override
    public boolean addInfo(UserInfo userInfo) {
        return userInfoMapper.addInfo(userInfo);
    }

    @Override
    public boolean updateInfo(UserInfo userInfo) {
        return userInfoMapper.updateInfo(userInfo);
    }

    @Override
    public boolean delInfo(int status,int id) {
        return userInfoMapper.delInfo(status, id);
    }

    @Override
    public List<UserInfo> selInfos(int status) {
        return userInfoMapper.selInfos(status);
    }

    @Override
    public UserInfo selOneInfo(int status, int id) {
        return userInfoMapper.selOneInfo(status,id);
    }
}
